package com.lse_api.service.impl;

import com.lse_api.entity.UserInfo;
import com.lse_api.mapper.UserInfoMapper;
import com.lse_api.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户个性化信息 服务实现类
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Resource
    private UserInfoMapper mapper;

    @Override
    public UserInfo getUserInfoByUserId(String dataBase, String userId) {
        return mapper.getUserInfoByUserId(dataBase, userId);
    }

    @Override
    public List<UserInfo> getUserInfoByProject(String projectId) {
        return mapper.getUserInfoByProject(projectId);
    }
}
